//
//  FRmd.swift
//  FM
//
//  Created by x on 2017/9/22.
//  Copyright © 2017年 HLB. All rights reserved.
//

import UIKit

class FRmd: NSObject {
    
    /// 标题
    var title:String?
    
    /// 名字
    var name:String?
    
    var flag:Int = 0
    
    /// 图片跳转到地址URL
    var cover:String? {
        didSet{
            coverURL = URL(string: cover!)
        }
    }
    
    var count:Int = 0
    
    var sort:Int = 0
    
    var id:Int = 0
    
    /// 显示图片的URL
    var coverURL:URL?
    
    
    init(dict: [String:AnyObject]) {
        super.init();
        setValuesForKeys(dict);
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        print("key======\(key)")
    }
}
